﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace VkApi.DataTypes
{
    /// <summary>
    /// Class that represents wiki-page.
    /// </summary>
    public class Page
    {
        /// <summary>
        /// Page ID.
        /// </summary>
        public long pid;
        /// <summary>
        /// Group ID.
        /// </summary>
        public long group_id;
        /// <summary>
        /// Creater ID.
        /// </summary>
        public long creator_id;
        /// <summary>
        /// Title.
        /// </summary>
        public string title;
        /// <summary>
        /// Text in wiki-format.
        /// </summary>
        public string source;
        /// <summary>
        /// Can user change page. 0 - no, 1 - yes.
        /// </summary>
        public int current_user_can_edit;
        /// <summary>
        /// Can user change access rights. 0 - no, 1 - yes.
        /// </summary>
        public int current_user_can_edit_access;
        /// <summary>
        /// Who can view. 2 - all, 1 - only group members, 0 - only group leaders.
        /// </summary>
        public int who_can_view;
        /// <summary>
        /// Who can edit.  2 - all, 1 - only group members, 0 - only group leaders.
        /// </summary>
        public int who_can_edit;
        /// <summary>
        /// ID of the last editor.
        /// </summary>
        public long editor_id;
        /// <summary>
        /// Date of the last edit.
        /// </summary>
        public string edited;
        /// <summary>
        /// Date of creation.
        /// </summary>
        public string created;
        /// <summary>
        /// Parent page title for navigation. If exists.
        /// </summary>
        public string parent;
        /// <summary>
        /// Seconf parent page title. If exists.
        /// </summary>
        public string parent2;

    }
}
